<?php 
namespace app\superadmin\controller;
use app\superadmin\model\Index as IndexModel;
//继承Base控制器
class Message extends Base
{
    public function messagelist()
    {
       $messageres= \think\Db::name('message')
             ->alias('a')
             ->join('__USERS__ b', 'a.uid =b.id')
             ->join('__DINING__ c', 'a.did =c.shop_id')
             ->field('a.id,a.message,a.mdate,b.username,c.shopname')
             ->paginate(1);
       $this->assign('messageres',$messageres);
      return $this->fetch();
    } 


  
}

